package com.test.design_pattern.decorator;

public class MilkCoffee extends CoffeeDecorator {

    public MilkCoffee(Coffee coffee) {
        super(coffee);
    }

    @Override
    public double getCost() {
        double milkCost = 0.5;
        return super.getCost() + milkCost;
    }
}